﻿function eventShowChina() {
    jzcode.event.sendEvent('eventShowChina', null);
}


function register() {
    jzcode.event.registerEvent('eventShowChina', function () {
        if (g_isShowChina) {
            var name = 'China';
            var dataOpt = [{
                name: name,
                selected: true
            }];
            seriesWord3d.data = dataOpt;
            my3dChart.setOption(option3d);

            return;
        }
        g_isShowChina = true;
        var name = 'China';
        var dataOpt = [{
            name: name,
            selected: true
        }];
        var roamOpt = {
            autoRotate: true,
            focus: name,
            minZoom: 2,
            maxZoon: 2,
            preserve: false
        }

        seriesWord3d.data = dataOpt;
        seriesWord3d.roam = roamOpt;

        //seriesWord3d.mapLocation = {
        //    width: '117%'
        //};
        my3dChart.setOption(option3d);
        //window.setTimeout(function () {
        //    seriesWord3d.background = null;
        //    seriesWord3d.mapLocation = {
        //        width: '117%'
        //    };
        //    my3dChart.setOption(option3d);
        //}, 1000);
        window.setTimeout(function () {
            showMapChina();
            showListTable();
        }, 500);
    });
}